package cn.shop.cloud.redis;


/**
 * @program: work
 * @ClassName MemberServerKeyPre
 * @description:
 * @author: 李尧坤
 * @create: 2025−01-08 14:21
 * @Version 1.0
 **/

public class MemberServerKeyPrefix implements KeyPrefix{

    public String prefix;
    //后辍 30*60 秒
    public int expireSeconds;//过期时间

    @Override
    public String getPrefix() {
        return prefix;
    }

    @Override
    public int getExpireSeconds() {
        return expireSeconds;
    }

    public MemberServerKeyPrefix(String prefix, int expireSeconds) {
        this.prefix = prefix;
        this.expireSeconds = expireSeconds;
    }

    public static final MemberServerKeyPrefix USER_TOKEN =
            new MemberServerKeyPrefix("userToken",30*60);
}
